<template>
    <div class="top">
        <div class="left">{{ title }}</div>
        <div v-if="!hide" class="right" style="color: #666;font-size: 16px;" @click="$emit('click')">更多</div>
    </div>
</template>
<script>
export default {
    props: {
        title:{
            type:String,
        },
          hide:{
            type:Boolean,
            default:false
        }
    }
}
</script>
<style lang="scss" scope>
.top{
    display: flex;
    height: 35px;
    justify-content: space-between;
    line-height: 35px;
    padding: 0 10px 0 34px;
    border-bottom: 2px solid #C10D0C;
    font-size: 20px;
    color: #333;
    position: relative;
    align-items: center;
    .right{
        height: 20px;
        line-height: 20px;
        cursor: pointer;
        box-sizing: border-box;
        &:hover{
            border-bottom: 1px solid #000;
        }
    }
    &::after{
        left: 6px;
        top: 50%;
        width: 20px;
        transform: translateY(-50%);
        border-radius: 50%;
        height: 20px;
        background-color: #C10D0C;
        content: "";
        position: absolute;
    }

}
</style>